package cn.lecosa.spark.es.entity;

import java.io.Serializable;

public class CarplateObj implements Serializable{
	private String f_carplate_id;
	private String f_carplate_degree;
	
	
	
	public CarplateObj() {
		
	}
	public CarplateObj(String f_carplate_id, String f_carplate_degree) {
		this.f_carplate_id = f_carplate_id;
		this.f_carplate_degree = f_carplate_degree;
	}
	public String getF_carplate_id() {
		return f_carplate_id;
	}
	public void setF_carplate_id(String f_carplate_id) {
		this.f_carplate_id = f_carplate_id;
	}
	public String getF_carplate_degree() {
		return f_carplate_degree;
	}
	public void setF_carplate_degree(String f_carplate_degree) {
		this.f_carplate_degree = f_carplate_degree;
	}
	@Override
	public String toString() {
		return "CarplateObj [f_carplate_id=" + f_carplate_id + ", f_carplate_degree=" + f_carplate_degree + "]";
	}
	
	@Override
	public boolean equals(Object arg0) {
		if(arg0 instanceof CarplateObj){
			CarplateObj o = (CarplateObj)arg0;
			if (o.getF_carplate_id().equals(this.getF_carplate_id()))
				return true;
		}
		return false;
	}
}
